package com.service.impl;


import com.dao.IMyuser;
import com.model.MyUser;
import com.service.MyuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyuserServiceimpl implements MyuserService {

    @Autowired
    private IMyuser iMyuser;

    @Override
    public int addMyUser(MyUser myUser) {
        return iMyuser.insertMyUser(myUser);
    }

    @Override
    public MyUser getUser(int userid) {
        return iMyuser.getMyUser(userid);
    }

    @Override
    public int updateMyUser(MyUser myUser) {
        return iMyuser.updataMyUser(myUser);
    }

    @Override
    public int deleteMyUser(int userid) {
        return iMyuser.deleteMyUser(userid);
    }
}
